package 作业.Var1025.Vehicle;

//车辆检测中心
public class Testing {
    private String telephone;//电话
    private String address;//地址

    public Testing(String telephone, String address) {
        this.telephone = telephone;
        this.address = address;
        System.out.println("车辆检测中心在:"+address+",联系电话是:"+telephone);
    }
    public void check(Car car){
        car.start();
        car.accelerate();
        car.brake();
    }

}
